<?php

namespace app\model\plan\exam;

use app\model\exam\Exam;
use app\model\plan\Plan;
use app\model\TimeModel;

class StaffExam extends TimeModel
{
    protected $table = 'sj_staff_exam';

    protected $type = [
        'exam_time' => 'timestamp:Y-m-d H:i:s'
    ] ;
    public function plan()
    {
        return $this->belongsTo(Plan::class , 'plan_id' , 'id') ;
    }
    public function exam()
    {
        return $this->belongsTo(Exam::class , 'exam_id' , 'id') ;
    }
}